const riqi = document.querySelector('.riqi')
const shijian = document.querySelector('.shijian')
const date = new Date()
const year = date.getFullYear()
const month = date.getMonth() + 1
const day = date.getDate()
riqi.innerHTML = year + ' - ' + month + ' - ' + day
function fn() {
    const data = new Date()
    var x
    var y
    var z
    const hours = data.getHours()
    const mins = data.getMinutes()
    const sed = data.getSeconds()
    if (hours < 10) {
        x = '0' + hours
    } else {
        x = hours
    }
    if (mins < 10) {
        y = '0' + mins
    } else {
        y = mins
    }
    if (sed < 10) {
        z = '0' + sed
    } else {
        z = sed
    }
    shijian.innerHTML = x + ' : ' + y + ' : ' + z
}
window.addEventListener('load', fn)
window.setInterval("fn()", 1000)
function pn() {
    var swiper = new Swiper('.swiper-container', {
        spaceBetween: 30,
        centeredSlides: true,
        autoplay: {
            delay: 2500,
            disableOnInteraction: false,
        },
        pagination: {
            el: '.swiper-pagination',
            clickable: true,
        },
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
    });
}
pn()
